<template>
  <div>
    <h1>{{count}}</h1>
    <h1>{{doubleCount}}</h1>
    <h2>{{nCount(3)}}</h2>
    <h2>{{nCount(4)}}</h2>
  </div>
</template>

<script>
export default {
  data(){
    return {
       count:10
    }
  },
  computed:{
    doubleCount(){
      return this.count*2
    },
    nCount(){
      return function(n){
        return this.count*n
      }
    }
  }
}
</script>

<style>

</style>